package com.dy.user.mapper;

import com.dy.basic.mapper.BaseMapper;
import com.dy.user.domain.Logininfo;
import com.dy.user.domain.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dayong
 * @since 2023-03-04
 */
public interface UserMapper extends BaseMapper<User> {

    User findByPhone(String phone);

    // 邮箱是否被注册
    User findByEmail(String email);

    // 通过userId查询logininfo的数据
    Logininfo findLogininfoById(Long userId);
}
